<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------
namespace app\video\behavior\add_play_watchcount_after;

/**
 * 用户关注的视频，观看记录
 * @package app\video\behavior\add_play_watchcount_after
 * @author jason wang
 */
class followPush{
    /**
     * 执行行为 run方法是Behavior唯一的接口
     * @access public
     * @return void
     */
    public function run($params){
    	$uid 		= $params['user_uid'];
    	$play_id 	= $params['play_id'];
		
		if($uid > 0){
			$info = model('video/VideoPlay') -> getPlayinfoByPlayid($play_id);
			$f_uid = $info['data']['uid'];
			datacache('video/VideoPlay') -> getFollowPushFilter($uid, $f_uid, true);//更新缓存池子
		}
    }
} 
